package com.maduar.batch.demo.credit;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;
import org.springframework.batch.core.StepListener;

/**
 * Description:
 *
 * @Author maduar maduar@163.com
 * @Date 2021-07-21 22:34
 */
@Slf4j
public class StepCreditBillListener implements StepExecutionListener {

    private int num;

    @Override
    public void beforeStep(StepExecution stepExecution) {
        log.info("start step..." + num);
    }

    @Override
    public ExitStatus afterStep(StepExecution stepExecution) {
        log.info("end step..." + num);
        return null;
    }
}
